const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  parallel:false, // 打包需要关闭,否则会报错 Syntax Error: Thread Loader (Worker 0)Cannot read properties of undefined (reading 'options')
  transpileDependencies: true,
  publicPath: '/signin/',
  configureWebpack: {
    resolve: {
      extensions: ['.js', '.vue', '.json', '.scss']
    },
    module: {
      rules: [
        {
          test: /\.worker\.js$/,
          use: { loader: 'worker-loader' }
        }
      ]
    }
  }
})
